package com.tensquare.article.dao;

import com.tensquare.article.pojo.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @Auther: 高源
 * @Time:2020/5/4 13:23
 * @Description: 评论dao
 * @version:1.0
 */
public interface CommentDao extends MongoRepository<Comment,String> {

    /**
     * 根据文章id查询评论列表
     */
    public List<Comment> findByArticleid(String articleid);
}
